package com.cn.qtms.entity;//类注释设置模板

import com.cn.qtms.base.entity.BaseEntity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * @Name:TmGoodsPrice
 * @Description:
 * @Author: zhangyang
 * @Date: 2019-12-27 14:23
 **/
@Entity
@Table(name = "tm_goods_price")
@org.hibernate.annotations.Table(appliesTo = "tm_goods_price",comment="商品价格表")
@Getter
@Setter
public class TmGoodsPrice extends BaseEntity {

    @Column(name = "goods_id", columnDefinition = "bigint(20) COMMENT '订单号'")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long  goodsId;

    @Column(name = "user_level", columnDefinition = "int(2) COMMENT '用户等级'")
    private Integer userLevel;

    @Column(name = "sale_price")
    private BigDecimal salePrice;
}
